from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.request import Request


class LoginView(APIView):
    """用户登录"""
    def post(self,request):
        print(request.data)
        return Response({"code": 1000, "msg": "success"})
